/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package triggerhelper.helperClasses;

/**
 *
 * @author Philyo
 */
public class InputErrorChecking {

    public static boolean isAlphaNumeric(final String s) {
        final char[] chars = s.toCharArray();
        for (final char c : chars) {
            if (!Character.isUnicodeIdentifierPart(c) && c != ' ') {
                return false;
            }
        }
        return true;
    }
    public static boolean isLetter(final char c) {
        return Character.isLetter(c);
    }
}
